package com.sx.mvvmlibs.base

import android.annotation.SuppressLint
import androidx.lifecycle.ViewModelStoreOwner
import androidx.viewbinding.ViewBinding

/**
 * @Author: YY
 * @Date: 2022/1/14
 * @Describe: 界面足够简单，不需要 ViewModel，可继承自此类
 * TODO: 此类不可以使用 [mViewModel] 变量，不可使用 vm 相关的方法，不可使用 LoadingDialog
 */
abstract class NoVMBaseActivity<V: ViewBinding> : ViewBindingBaseActivity<V, BaseViewModel<BaseModel>>() {


    @SuppressLint("MissingSuperCall")
    final override fun initViewModel() {
    }

    @SuppressLint("MissingSuperCall")
    final override fun initUIChangeLiveData() {
    }

    final override fun createViewModel(viewModelStoreOwner: ViewModelStoreOwner): BaseViewModel<BaseModel> {
        return super.createViewModel(viewModelStoreOwner)
    }

}